package com.nulldev.util.networking.dns.client.record;

import com.nulldev.util.networking.dns.client.MessageContent;

public abstract class RecordData<T> implements MessageContent<RecordData<T>> {
	private int recordLength;

	void setRecordLength(int recordLength) {
		this.recordLength = recordLength;
	}

	protected int getRecordLength() {
		return recordLength;
	}

	@SuppressWarnings("unchecked")
	public T get() {
		return (T) this;
	}
}
